﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using DLV.Utilities;

namespace DLV.Data.Entities
{
    public class TourServiceController
    {
        public int InsertTourService(TourServiceInfo info)
        {
            return SQL.InsertTourService(info.TourId,info.ServiceId, info.ServiceType, info.CreatedBy, info.CreatedDate, info.UpdatedBy, info.UpdatedDate, info.Status);
        }
        public void UpdateTourService(TourServiceInfo info)
        {
            SQL.UpdateTourService(info.TourServiceId, info.TourId, info.ServiceId, info.ServiceType, info.CreatedBy, info.CreatedDate, info.UpdatedBy, info.UpdatedDate, info.Status);
        }
        public void DeleteTourService(TourServiceInfo info)
        {
            DeleteTourService(info.TourServiceId);
        }
        public void DeleteTourService(int tourServiceId)
        {
            SQL.DeleteTourService(tourServiceId);
        }
        public TourServiceInfo GetTourService(int tourServiceId)
        {
            return CBO.FillObject<TourServiceInfo>(SQL.GetTourService(tourServiceId));
        }
    }
}
